/*
 *  Types.h
 *  BugFix
 *
 *  Created by Dmitry Fadeev on 9/12/11.
 *  Copyright 2011 Arello Mobile. All rights reserved.
 *
 */

#pragma once

#include <math/Vector2.h>
#include <Box2D/Common/b2Math.h>

namespace physics
{
	typedef math::Vector2 <float> Vector2;

	class Converter
	{
	public:
		static Vector2 FromBox2D(b2Vec2 v)
		{
			return Vector2(v.x, v.y);
		}

		static b2Vec2 ToBox2D(Vector2 v)
		{
			return b2Vec2(v.x, v.y);
		}
	};
}